﻿#ifndef REGISTERWIN_H
#define REGISTERWIN_H

#include <QWidget>
#include <opencv2/opencv.hpp>
using namespace cv;
namespace Ui {
class RegisterWin;
}

class RegisterWin : public QWidget
{
    Q_OBJECT

public:
    explicit RegisterWin(QWidget *parent = nullptr);
    ~RegisterWin();
protected:
    void timerEvent(QTimerEvent *e);
private slots:
    void on_resetPushButton_clicked();

    void on_addpicPushButton_clicked();

    void on_registerPushButton_clicked();

    void on_openCameraPushButton_clicked();

    void on_catchpicPushButton_clicked();

private:
    Ui::RegisterWin *ui;
    VideoCapture cap;
    int timerid;
    Mat srcImage;
};

#endif // REGISTERWIN_H
